#include <stdio.h>
#include <ctype.h>
void capitalize(char str[]);
void capitalize2(char *str);
int main(void)
{
    char s1[] = "asda s你 好 ad！";
    capitalize(s1);
    puts(s1);
    char s2[] = "-- wqe 世 界asda --";
    capitalize2(s2);
    puts(s2);
    return 0;
}
void capitalize(char str[]) 
{
    for (int i = 0; str[i]; i++)
        str[i] = toupper(str[i]);
}
void capitalize2(char *str) 
{
    for (char *p = str; *p; p++)
        *p = toupper(*p);
}